package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc VirtualImageDto
 * @使用场景
 */
@Data
public class VirtualImageDto extends BaseDto implements Serializable {

  /**
   * 虚拟形象ID
   */
  @ApiModelProperty("虚拟形象ID")
  private String virtualImageId;

  /**
   * 虚拟形象名称
   */
  @ApiModelProperty("虚拟形象名称")
  private String virtualImageName;

  /**
   * 使用场景类型编码 SYSTEM:系统消息
   */
  @ApiModelProperty("使用场景类型编码")
  private String sceneTypeCode;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 虚拟形象图片
   */
  @ApiModelProperty("虚拟形象图片")
  private String virtualImage;

  /**
   * 人物经典语句
   */
  @ApiModelProperty("人物经典语句")
  private String characterClassicPhrase;

  /**
   * 是否自定义形象 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否自定义形象")
  private String isCustomImage;

  /**
   * 虚拟形象简介
   */
  @ApiModelProperty("虚拟形象简介")
  private String virtualImageDesc;

  /**
   * 虚拟形象标识
   */
  @ApiModelProperty("虚拟形象标识")
  private String virtualImageCode;

  /**
   * 使用场景子类型 STRONG_REMINDER_BY_ASSISTANT:助手强提醒 CHAT_VIRTUAL_IMAGE:沟通形象 MESSAGE-AVATAR:消息头像
   */
  @ApiModelProperty("使用场景子类型")
  private String sceneSubTypeCode;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    VirtualImageDto that = (VirtualImageDto) o;
    return (
      virtualImageId == that.virtualImageId &&
      virtualImageName == that.virtualImageName &&
      sceneTypeCode == that.sceneTypeCode &&
      subjectLifeCycle == that.subjectLifeCycle &&
      operationInductionId == that.operationInductionId &&
      operateTime == that.operateTime &&
      virtualImage == that.virtualImage &&
      characterClassicPhrase == that.characterClassicPhrase &&
      isCustomImage == that.isCustomImage &&
      virtualImageDesc == that.virtualImageDesc &&
      virtualImageCode == that.virtualImageCode &&
      sceneSubTypeCode == that.sceneSubTypeCode
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      virtualImageId,
      virtualImageName,
      sceneTypeCode,
      subjectLifeCycle,
      operationInductionId,
      operateTime,
      virtualImage,
      characterClassicPhrase,
      isCustomImage,
      virtualImageDesc,
      virtualImageCode,
      sceneSubTypeCode
    );
  }

}
